<?php

if (!empty($total)) {

    $this->widget('bootstrap.widgets.TbDetailView', array(
        'data' => $total,
        'attributes' => array(
//            'total',
//            'descripcion',
//            'num_horas',
            array(
                'name' => 'Total',
                'value' => ($total['total'] ." ". "<span class=\"label label-mini " . Controller::color($total["estado"]) . " \">" . $total["estado"] . "</span>"),
                'type' => 'html',
            ),
//            array('name' => 'Estado',
//                'type' => 'html',
//                'value' => "<span class=\"label label-mini " . Controller::color($total["estado"]) . " \">" . $total["estado"] . "</span>"
//            ),
        ),
        'htmlOptions' => array('style' => 'width: 200px'),
    ));
}
?>